package com.ruoyi.controller.system;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.controller.BaseController;
import com.ruoyi.domain.SysLogininfor;
import com.ruoyi.service.SysLogininforService;

@RequestMapping("monitor/logininfor")
@RestController
public class SysLogininforController extends BaseController{
	
	@Autowired
	private SysLogininforService sysLogininforService;
	
	/**
	 * 登录日志
	 * @param logininfor
	 * @return
	 */
	@GetMapping("list")
	public TableDataInfo list(SysLogininfor logininfor) {
		logger.info("登录日志 ,logininfor:{}",logininfor);
		startPage();
		List<SysLogininfor> list = sysLogininforService.selectLogininforList(logininfor);
		return getDataTable(list);
	}

}
